export const businessTypeOptions = [
    {value: 1, label: '外卖订单', type: 'primary'},
    {value: 2, label: '旧物订单', type: 'info'},
]

export const fields = [
    {
        prop: 'image',
        label: '图片',
        type: 'image',
        width: 120,
    },
    {
        prop: 'orderId',
        label: '所属订单',
        type: 'number',
        width: 120,
    },
    {
        prop: 'userId',
        label: '所属用户',
        type: 'number',
        width: 120,
    },
    {
        prop: 'merchantId',
        label: '所属商家',
        type: 'number',
        width: 120,
    },
    {
        prop: 'businessId',
        label: '所属业务',
        type: 'number',
        width: 120,
    },
    {
        prop: 'businessType',
        label: '业务类型',
        type: 'switch',
        options: businessTypeOptions,
        search: true,
        width: 170,
    },
    {
        prop: 'name',
        label: '名称',
        type: 'text',
        search: true,
        width: 170,
    },
    {
        prop: 'price',
        label: '价格',
        type: 'number',
        width: 120,
    },
    {
        prop: 'count',
        label: '数量',
        type: 'number',
        width: 120,
    }
]